<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>个人信息 - 智面未来</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">

  <!-- Tailwind 配置 -->
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            primary: '#165DFF',
            secondary: '#36D399',
            accent: '#FF9F43',
            dark: '#1E293B',
            light: '#F8FAFC'
          },
          fontFamily: {
            inter: ['Inter', 'sans-serif'],
          },
        },
      }
    }
  </script>

  <style type="text/tailwindcss">
    @layer utilities {
      .content-auto {
        content-visibility: auto;
      }
      .card-hover {
        transition: all 0.3s ease;
      }
      .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      }
      .nav-scrolled {
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
      }
    }
  </style>
</head>
<body class="font-inter bg-gray-50 text-dark antialiased min-h-screen">
  <!-- 导航栏 -->
  <nav id="main-nav" class="fixed w-full top-0 z-50 transition-all duration-300 py-4">
    <div class="container mx-auto px-4 md:px-6 lg:px-8">
      <div class="flex justify-between items-center">
        <a href="#" class="flex items-center space-x-2">
          <div class="w-10 h-10 bg-primary rounded-lg flex items-center justify-center">
            <i class="fa fa-comments text-white text-xl"></i>
          </div>
          <span class="text-xl font-bold text-primary">智面未来</span>
        </a>

        <!-- 桌面导航 -->
        <div class="hidden md:flex items-center space-x-6">
          <!-- 系统说明 -->
          <div class="relative group mr-6">
            <a href="#" class="text-dark hover:text-primary transition-colors font-medium flex items-center">
              系统说明 <i class="fa fa-chevron-down ml-1 text-xs transition-transform group-hover:rotate-180"></i>
            </a>
            <div class="absolute left-0 mt-2 w-48 bg-white rounded-lg shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 z-50 border border-gray-100">
              <a href="#business" class="block px-4 py-2 text-dark hover:bg-primary/5 hover:text-primary transition-colors">业务场景</a>
              <a href="#features" class="block px-4 py-2 text-dark hover:bg-primary/5 hover:text-primary transition-colors">功能需求</a>
              <a href="#technology" class="block px-4 py-2 text-dark hover:bg-primary/5 hover:text-primary transition-colors">技术架构</a>
            </div>
          </div>

          <!-- 模拟面试 -->
          <a href="/mnms/" class="text-dark hover:text-primary transition-colors font-medium">模拟面试</a>

          <!-- 个人主页 -->
          <div class="relative group">
            <a href="#" class="text-dark hover:text-primary transition-colors font-medium flex items-center">
              {{ name }}的个人主页 <i class="fa fa-chevron-down ml-1 text-xs transition-transform group-hover:rotate-180"></i>
            </a>
            <div class="absolute right-0 mt-2 w-60 bg-white rounded-lg shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 z-50 border border-gray-100">
              <a href="/info/" class="block px-4 py-2 text-dark bg-primary/5 text-primary font-medium">个人信息</a>
              <a href="/changeinfo/" class="block px-4 py-2 text-dark hover:bg-primary/5 hover:text-primary transition-colors">修改个人信息</a>
              <a href="#interview-record" class="block px-4 py-2 text-dark hover:bg-primary/5 hover:text-primary transition-colors">面试记录</a>
              <a href="#exam-record" class="block px-4 py-2 text-dark hover:bg-primary/5 hover:text-primary transition-colors">笔试记录</a>
              <div class="border-t border-gray-100 my-1"></div>
              <a href="#about" class="block px-4 py-2 text-dark hover:bg-primary/5 hover:text-primary transition-colors">关于我们</a>
              <a href="/login/" class="block px-4 py-2 text-dark hover:bg-primary/5 hover:text-primary transition-colors text-red-600">注销</a>
            </div>
          </div>

        </div>

        <!-- 移动端菜单按钮 -->
        <button id="menu-btn" class="md:hidden text-dark focus:outline-none">
          <i class="fa fa-bars text-2xl"></i>
        </button>
      </div>
    </div>

    <!-- 移动端导航菜单 -->
    <div id="mobile-menu" class="md:hidden hidden bg-white absolute w-full border-t border-gray-100">
      <div class="container mx-auto px-4 py-3 space-y-3">
        <a href="/mnms/" class="block text-dark hover:text-primary transition-colors py-2 font-medium">模拟面试</a>

        <!-- 系统说明下拉菜单 -->
        <div class="mobile-dropdown">
          <button class="w-full text-left flex justify-between items-center text-dark hover:text-primary transition-colors py-2 font-medium">
            系统说明 <i class="fa fa-chevron-down text-xs transition-transform"></i>
          </button>
          <div class="mobile-dropdown-content hidden pl-4 pt-2 pb-3 space-y-2">
            <a href="#business" class="block text-dark hover:text-primary transition-colors py-1">业务场景</a>
            <a href="#features" class="block text-dark hover:text-primary transition-colors py-1">功能需求</a>
            <a href="#technology" class="block text-dark hover:text-primary transition-colors py-1">技术架构</a>
          </div>
        </div>

        <!-- 个人主页下拉菜单 -->
        <div class="mobile-dropdown">
          <button class="w-full text-left flex justify-between items-center text-dark hover:text-primary transition-colors py-2 font-medium">
            个人主页 <i class="fa fa-chevron-down text-xs transition-transform"></i>
          </button>
          <div class="mobile-dropdown-content hidden pl-4 pt-2 pb-3 space-y-2">
            <a href="#profile" class="block text-primary py-1 font-medium">个人信息</a>
            <a href="#edit-profile" class="block text-dark hover:text-primary transition-colors py-1">修改个人信息</a>
            <a href="#interview-record" class="block text-dark hover:text-primary transition-colors py-1">面试记录</a>
            <a href="#exam-record" class="block text-dark hover:text-primary transition-colors py-1">笔试记录</a>
            <div class="border-t border-gray-100 my-1 w-2/3"></div>
            <a href="#about" class="block text-dark hover:text-primary transition-colors py-1">关于我们</a>
            <a href="#logout" class="block text-dark hover:text-primary transition-colors py-1 text-red-600">注销</a>
          </div>
        </div>

        <a href="#contact" class="block bg-primary text-white px-5 py-2 rounded-full text-center hover:bg-primary/90 transition-colors font-medium">了解更多</a>
      </div>
    </div>
  </nav>

  <!-- 主内容区 -->
  <main class="pt-28 pb-20">
    <div class="container mx-auto px-4 md:px-6 lg:px-8">
      <!-- 页面标题 -->
      <div class="text-center max-w-3xl mx-auto mb-12">
        <h1 class="text-[clamp(1.8rem,4vw,2.5rem)] font-bold text-dark mb-4">个人信息</h1>
        <p class="text-gray-600">查看和管理您的账户信息</p>
      </div>

      <!-- 个人信息卡片 -->
      <div class="max-w-2xl mx-auto">
        <div class="bg-white rounded-2xl shadow-xl overflow-hidden card-hover">
          <!-- 个人头像区域 -->
          <div class="bg-gradient-to-r from-primary to-primary/80 p-8 text-center">
            <div class="w-24 h-24 rounded-full bg-white mx-auto flex items-center justify-center mb-4">
              <i class="fa fa-user text-primary text-4xl"></i>
            </div>
            <h2 class="text-2xl font-bold text-white">{{ name }}</h2>

          </div>

          <!-- 详细信息区域 -->
          <div class="p-8">
            <h3 class="text-lg font-semibold mb-6 pb-2 border-b border-gray-100">账户信息</h3>

            <div class="space-y-6">
              <!-- 用户名 -->
              <div class="flex justify-between items-center p-3 hover:bg-gray-50 rounded-lg transition-colors">
                <div class="flex items-center">
                  <div class="w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center mr-4">
                    <i class="fa fa-user text-primary"></i>
                  </div>
                  <span class="font-medium">用户名</span>
                </div>
                <span class="text-gray-600">{{ name }}</span>
              </div>

              <!-- 电话号码 -->
              <div class="flex justify-between items-center p-3 hover:bg-gray-50 rounded-lg transition-colors">
                <div class="flex items-center">
                  <div class="w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center mr-4">
                    <i class="fa fa-phone text-primary"></i>
                  </div>
                  <span class="font-medium">电话号码</span>
                </div>
                <span class="text-gray-600">{{ phone }}</span>
              </div>

              <!-- 密码 -->
              <div class="flex justify-between items-center p-3 hover:bg-gray-50 rounded-lg transition-colors">
                <div class="flex items-center">
                  <div class="w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center mr-4">
                    <i class="fa fa-lock text-primary"></i>
                  </div>
                  <span class="font-medium">密码</span>
                </div>
                <span class="text-gray-600">{{ password }}</span>
              </div>

              <!-- 账户状态 -->
              <div class="flex justify-between items-center p-3 hover:bg-gray-50 rounded-lg transition-colors">
                <div class="flex items-center">
                  <div class="w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center mr-4">
                    <i class="fa fa-check-circle text-primary"></i>
                  </div>
                  <span class="font-medium">账户状态</span>
                </div>
                <span class="flex items-center text-secondary">
                  <i class="fa fa-circle text-xs mr-2"></i> 正常
                </span>
              </div>

              <!-- 最后登录时间 -->

            </div>

            <!-- 修改按钮 -->
            <div class="mt-10">
              <a href="/changeinfo/" class="block w-full bg-primary text-white px-6 py-3 rounded-lg hover:bg-primary/90 transition-all shadow-md hover:shadow-primary/20 font-medium text-center">
                <i class="fa fa-pencil mr-2"></i> 编辑个人信息
              </a>
            </div>
          </div>
        </div>

        <!-- 安全提示 -->
        <div class="mt-6 bg-primary/5 border border-primary/20 rounded-lg p-4">
          <div class="flex">
            <div class="flex-shrink-0">
              <i class="fa fa-shield text-primary mt-0.5"></i>
            </div>
            <div class="ml-3">
              <h3 class="text-sm font-medium text-primary">账户安全提示</h3>
              <div class="mt-1 text-sm text-gray-600">
                <p>请定期修改密码，保持密码复杂度，确保账户安全。不要向他人泄露您的账户信息。</p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </main>

  <!-- 页脚 -->
  <footer class="bg-white border-t border-gray-200 py-10">
    <div class="container mx-auto px-4 md:px-6 lg:px-8">
      <div class="flex flex-col md:flex-row justify-between items-center">
        <div class="flex items-center space-x-2 mb-6 md:mb-0">
          <div class="w-10 h-10 bg-primary rounded-lg flex items-center justify-center">
            <i class="fa fa-comments text-white text-xl"></i>
          </div>
          <span class="text-xl font-bold text-primary">智面未来</span>
        </div>

        <div class="text-center md:text-right text-gray-500 text-sm">
          <p>© 2023 智面未来 版权所有</p>
          <p class="mt-1">面向高校学生的多模态智能模拟面试评测系统</p>
        </div>
      </div>
    </div>
  </footer>

  <!-- JavaScript -->
  <script>
    // 导航栏滚动效果
    const nav = document.getElementById('main-nav');

    window.addEventListener('scroll', function() {
      if (window.scrollY > 50) {
        nav.classList.add('nav-scrolled');
      } else {
        nav.classList.remove('nav-scrolled');
      }
    });

    // 移动端菜单
    const menuBtn = document.getElementById('menu-btn');
    const mobileMenu = document.getElementById('mobile-menu');

    menuBtn.addEventListener('click', function() {
      mobileMenu.classList.toggle('hidden');
    });

    // 移动端下拉菜单
    document.querySelectorAll('.mobile-dropdown button').forEach(button => {
      button.addEventListener('click', function() {
        const content = this.nextElementSibling;
        const icon = this.querySelector('i');

        content.classList.toggle('hidden');
        icon.classList.toggle('rotate-180');
      });
    });

    // 平滑滚动
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
      anchor.addEventListener('click', function(e) {
        e.preventDefault();

        const targetId = this.getAttribute('href');
        if (targetId === '#') return;

        const targetElement = document.querySelector(targetId);
        if (targetElement) {
          window.scrollTo({
            top: targetElement.offsetTop - 80,
            behavior: 'smooth'
          });

          // 关闭移动端菜单
          if (!mobileMenu.classList.contains('hidden')) {
            mobileMenu.classList.add('hidden');
          }
        }
      });
    });
  </script>
</body>
</html>